From 7a5e21ac38c2e4631c0071028ec11898eb2825e1 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Mon, 22 Sep 2014 14:59:56 +0200 Subject: [PATCH] tools/hotplug: create XEN_RUN_DIR at runtime Create XEN_RUN_DIR instead of hardcoded path because it is a compiletime setting. Also /var/run might be empty on startup because it is a tmpfs mount point. Signed-off-by: Olaf Hering Acked-by: Ian Campbell --- tools/hotplug/Linux/init.d/xencommons.in.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hotplug/Linux/init.d/xencommons.in.in b/tools/hotplug/Linux/init.d/xencommons.in.in index 1d860d94e3..be21960236 100644 --- a/tools/hotplug/Linux/init.d/xencommons.in.in +++ b/tools/hotplug/Linux/init.d/xencommons.in.in @@ -60,7 +60,7 @@ do_start () { local timeout=30 @LOAD_MODULES@ - mkdir -p /var/run/xen + mkdir -p ${XEN_RUN_DIR} if ! `${BINDIR}/xenstore-read -s / >/dev/null 2>&1` then -- 2.30.2